package asteroids.statements;


import be.kuleuven.cs.som.annotate.Basic;
import asteroids.Ship;

public abstract class BasicStatement extends Statement {

	protected BasicStatement(int line, int column) {
		super(line, column);
	}

	@Override
	public final boolean hasAsSubStatement(Statement statement) {
		return statement == this;
	}

	@Override
	public int getNbOfStatements() {
		return 1;
	}
	
	@Override
	public boolean hasSubstatement() {
		return false;
	}
	
	@Override
	public Statement getStatementAt(int index) throws IndexOutOfBoundsException {
		if(index == 1)
			return this;
		else
			throw new IndexOutOfBoundsException();
	}
}
